package com.hdoit.apollo.web.stock.modelconfig;
import com.hdoit.apollo.web.shop.providers.CustomerProvider;
import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.DropDownListAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年05月30日 09:49:20
 * @comment
 */
public class OutStockSearchConfig extends ModelMetadataAttributeConfiguration{
    public OutStockSearchConfig(){

        this.setProperty("startDate")
            .hasAttribute(new DisplayNameAttribute("开始时间"));

        this.setProperty("endDate")
            .hasAttribute(new DisplayNameAttribute("至"));

        this.setProperty("billingNo")
            .hasAttribute(new DisplayNameAttribute("关联单号"));

        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("客户"))
            .hasAttribute(new DropDownListAttribute(new CustomerProvider()));
    }
}
